import request from '@/utils/request'

// 获取权限
export function indexPermission(params) {
  return request({
    url: '/admin/permission/',
    method: 'get',
    params: params
  })
}

// 修改权限
export function changePermission(data) {
  return request({
    url: '/admin/permission/change',
    method: 'post',
    data
  })
}

// 删除权限
export function deletePermission(data) {
  return request({
    url: '/admin/permission/delete',
    method: 'get',
    data
  })
}
